package com.example.mytest;

import android.test.AndroidTestCase;
import com.example.mytest.DatabaseService;

public class DatabaseServiceTest extends AndroidTestCase{
	private DatabaseService dbs;
	
	@Override
	protected void setUp() throws Exception {
		dbs = new DatabaseService(getContext());
	}

	@Override
	protected void tearDown() throws Exception {
		dbs.closeDB();
	}
	
	public void testPageCount() throws Exception{
		assertEquals(12, dbs.getPageCount());
	}
	
	public void testFetchALLArticle() throws Exception{
		assertEquals(12, dbs.fetchALLArticle().size());
	}
	
}

